package com.ruoyi.repair.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报修单对象 property_repair
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报修ID */
    private Long repairId;

    /** 报修单号 */
    @Excel(name = "报修单号")
    private String repairNo;

    /** 关联房屋 */
    @Excel(name = "关联房屋")
    private Long houseId;

    /** 报修人 */
    @Excel(name = "报修人")
    private Long userId;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String description;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String images;

    /** 紧急程度：LOW/MEDIUM/HIGH */
    @Excel(name = "紧急程度：LOW/MEDIUM/HIGH")
    private String urgency;

    /** 状态：SUBMITTED/ASSIGNED/PROCESSING/COMPLETED/CANCELLED */
    @Excel(name = "状态：SUBMITTED/ASSIGNED/PROCESSING/COMPLETED/CANCELLED")
    private String status;

    /** 维修人员 */
    @Excel(name = "维修人员")
    private Long staffId;

    /** 分配时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分配时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date assignTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    /** 维修费用 */
    @Excel(name = "维修费用")
    private BigDecimal cost;

    /** 评价（1-5星） */
    @Excel(name = "评价", readConverterExp = "1=-5星")
    private Long evaluation;

    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }

    public void setRepairNo(String repairNo) 
    {
        this.repairNo = repairNo;
    }

    public String getRepairNo() 
    {
        return repairNo;
    }

    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setUrgency(String urgency) 
    {
        this.urgency = urgency;
    }

    public String getUrgency() 
    {
        return urgency;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }

    public void setAssignTime(Date assignTime) 
    {
        this.assignTime = assignTime;
    }

    public Date getAssignTime() 
    {
        return assignTime;
    }

    public void setCompleteTime(Date completeTime) 
    {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() 
    {
        return completeTime;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    public void setEvaluation(Long evaluation) 
    {
        this.evaluation = evaluation;
    }

    public Long getEvaluation() 
    {
        return evaluation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairId", getRepairId())
            .append("repairNo", getRepairNo())
            .append("houseId", getHouseId())
            .append("userId", getUserId())
            .append("description", getDescription())
            .append("images", getImages())
            .append("urgency", getUrgency())
            .append("status", getStatus())
            .append("staffId", getStaffId())
            .append("assignTime", getAssignTime())
            .append("completeTime", getCompleteTime())
            .append("cost", getCost())
            .append("evaluation", getEvaluation())
            .append("createTime", getCreateTime())
            .toString();
    }
}
